$OpenBSD: patch-configure,v 1.16 2017/05/19 09:19:48 landry Exp $

chunk 1&2: adapt paths for our openjp2 install

Index: configure
--- configure.orig
+++ configure
@@ -25130,9 +25130,9 @@ fi
         LIBS="-lopenjp2 $LIBS"
     fi
   else
-    for ac_header in openjpeg-2.1/openjpeg.h
+    for ac_header in openjp2/openjpeg.h
 do :
-  ac_fn_c_check_header_mongrel "$LINENO" "openjpeg-2.1/openjpeg.h" "ac_cv_header_openjpeg_2_1_openjpeg_h" "$ac_includes_default"
+  ac_fn_c_check_header_mongrel "$LINENO" "openjp2/openjpeg.h" "ac_cv_header_openjpeg_2_1_openjpeg_h" "$ac_includes_default"
 if test "x$ac_cv_header_openjpeg_2_1_openjpeg_h" = xyes; then :
   cat >>confdefs.h <<_ACEOF
 #define HAVE_OPENJPEG_2_1_OPENJPEG_H 1
@@ -25196,7 +25196,7 @@ else
   HAVE_OPENJPEG=yes
   if test -r $with_openjpeg/include/openjpeg-2.0/openjpeg.h ; then
     EXTRA_INCLUDES="-I$with_openjpeg/include $EXTRA_INCLUDES"
-  elif test -r $with_openjpeg/include/openjpeg-2.1/openjpeg.h ; then
+  elif test -r $with_openjpeg/include/openjp2/openjpeg.h ; then
     OPENJPEG_VERSION=20100
     EXTRA_INCLUDES="-I$with_openjpeg/include $EXTRA_INCLUDES"
   else
